# jenkins script:

# #!/bin/bash
# cd ~/deploy/sftp_account_manage
# echo "96"
# source ~/.bashrc
# shopt -s extglob
#
# CRTDIR=$(pwd)
#
# chmod +x shutdown.sh
# chmod +x checkstatus.sh
# chmod +x startup.sh
#
# sh shutdown.sh
# sleep 2
# sh checkstatus.sh
#
# rm -rf !(py_pro.tar.gz|bak)
#
# if [ ! -d "${CRTDIR}/bak" ]; then
#   mkdir -p ${CRTDIR}/bak
# fi
# # 判断是否有logs文件夹，没有则创建，用于存储日志
# if [ ! -d "${CRTDIR}/logs" ]; then
#   mkdir -p ${CRTDIR}/logs
# fi
#
# tar -zxvf py_pro.tar.gz -C .
# filetime=`date +%Y%m%d_%H%M%S_bak`
# mv py_pro.tar.gz bak/py_pro_$filetime.tar.gz
#
# nohup python3 sftp_manage.py -p 8086 > ./logs/sftp_manage.log 2>&1 &